<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class PenyesuaianObatModel extends zulModel{

	function __construct(){
			parent::__construct();
			$this->table_name	= "penyesuaian";
			$this->primary_key	= "ID_PENYESUAIAN";
			$this->order_by		= "ID_PENYESUAIAN ASC"; 
	}
	function gridPenyesuaianObat(){
		$this->db->select('*');
		$this->db->from('penyesuaian');
		$this->flexigrid->build_query();
		$return['records'] = $this->db->get();
		
		$this->db->select('*');
		$this->db->from('penyesuaian');
		$this->flexigrid->build_query(FALSE);
		$return['record_count'] = $this->db->count_all_results();

		return $return;
	}
}
?>